package com.nep.NEPM;

import com.nep.common.util.AlertUtil;
import com.nep.common.util.SceneSwitcherUtil;
import javafx.application.Application;
import javafx.stage.Stage;
import java.util.logging.Level;
import java.util.logging.Logger;

public class AdministratorLogin extends Application {
    private static final Logger LOGGER = Logger.getLogger(AdministratorLogin.class.getName());

    @Override
    public void start(Stage stage) {
        try {
            SceneSwitcherUtil.switchScene(stage, "../../NEPM/view/AdminLoginView.fxml");
            stage.setWidth(970);
            stage.setHeight(610);
        } catch (Exception e) {
            LOGGER.log(Level.SEVERE, "加载管理员登录界面失败", e);
            AlertUtil.showError("系统错误", "加载管理员登录界面失败: " + e.getMessage());
        }
    }
}
